class car(object):
    def __init__(self,type,num):
        self.type=type
        self.num=num
    def start(self):
        pass
    def stop(self):
        pass
class Taxi(car):
    def __init__(self,type,num,company):
        super().__init__(type,num)
        self.company=company
    def start(self):
        print(f'我是{self.company}的出租车，车牌号是{self.num},即将发车')
    def stop(self):
        print('已到达目的地，请下车')
class familycar(car):
    def __init__(self,type,num,name):
        super().__init__(type,num)
        self.name=name
    def start(self):
        print(f'{self.name}车主即将开车')
    def stop(self):
        print(f"{self.name}已将你送到目的地")
taxi=Taxi('长安','赣b555555','滴滴')
taxi.start()
taxi.stop()
famcar=familycar('一汽大众','沪b11111','梅旺阳')
famcar.start()
famcar.stop()

